﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PingPongMain
{
    public class Ball : GameObject
    {
        public bool BallDirectionUp { get; set; }
        public bool BallDirectionRight { get; set; }
        public Ball(Coords coords, bool directionUp, bool directionRight) : base(coords, '@')
        {
            this.BallDirectionUp = directionUp;
            this.BallDirectionRight = directionRight;
            this.Length = 1;
            this.Width = 1;
        }

        public void SetBallAtTheMiddle()
        {
            this.GameObjCoords = new Coords(PrepareField.WorldRows / 2, PrepareField.WorldCols / 2);
        }
        public Ball()
        {
        }
    }
}
